package cn.net.sinodata.system.domain.bo;

import cn.net.sinodata.system.domain.PmPollingRole;
import cn.net.sinodata.common.mybatis.core.domain.BaseEntity;
import cn.net.sinodata.common.core.validate.AddGroup;
import cn.net.sinodata.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 轮询规则配置业务对象 pm_polling_role
 *
 * @author yinliangyun
 * @date 2025-10-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmPollingRole.class, reverseConvertGenerate = false)
public class PmPollingRoleBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 轮询类型
     */
    @NotBlank(message = "轮询类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pollingType;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 截至时间
     */
    private Date endTime;

    /**
     * 轮询频次
     */
    @NotNull(message = "轮询频次不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long pollingFrequency;

    /**
     * 备注
     */
    private String remarks;

}
